package com.nnxy.work_to_study.controller;


import com.nnxy.work_to_study.service.ProjectService;
import com.nnxy.work_to_study.util.ResultUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author @easily001
 * @since 2021-09-29
 */
@RestController
@RequestMapping("/work_to_study/project/")
public class ProjectController {


    @Autowired
    private ProjectService projectService;

    /**
     * 查询项目列表

     * @return
     */
    @RequestMapping(value = "getProjectList",method = {RequestMethod.GET,RequestMethod.POST})
    @ResponseBody
    public ResultUtil getProjectList(){

        return projectService.getProductList();
    }




}

